<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" xmlns:pe="http://primefaces.org/ui/extensions"
	xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:cfn="http://web.conquest.meb.org/function"
	xmlns:pretty="http://ocpsoft.com/prettyfaces" xmlns:fn="http://java.sun.com/jsp/jstl/functions">

	<ui:fragment rendered="#{not empty _cardGroupItems}">
		<h:panelGroup layout="block" styleClass="card-group">
			<h:outputText value="#{_cardGroupPartTitle}&nbsp;(#{fn:length(_cardGroupItems)})"
				styleClass="card-group-title" />
			<p:dataList var="cgItem" value="#{_cardGroupItems}">
				<h:outputText value="#{cgItem.quantity}x&nbsp;" />
				<pretty:link mappingId="viewCard">
					<f:param value="#{localeCtrl.language}" />
					<f:param value="#{cgItem.card.id}" />
					<h:outputText value="#{cgItem.card.name}" />
				</pretty:link>
			</p:dataList>
		</h:panelGroup>
	</ui:fragment>

</ui:composition>